﻿@using Janus.Mes.WebClient;
@using Janus.BaseEntitys;
@using Janus.Mes.VO;
@model SampProcessVO

@{
    Layout = null;
    ViewBag.ViewTitle = "采样过程";
}
<div class="pageContent">
    <form method="post" action="Quality/SampleProcess/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <p>
                <label>
                    采样过程编号：
                </label>

                @if (ViewBag.IsCreate == true)
                {
                    @Html.TextBoxFor(c => c.SampPCode, new { @class = "required IsExisted", ajaxurl = "Quality/SampleProcess/IsExist" })
                }
                else
                {
                    @Html.TextBoxFor(c => c.SampPCode, new { @Readonly = "true" })
                }
                @Html.ValidationMessageFor(c => c.SampPCode)
            </p>
            <p>
                <label>
                    采样过程名称：
                </label>
                @Html.TextBoxFor(c => c.SampPName, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.SampPName)
            </p>
            <p>
                <label>
                    采样类型：
                </label>
                <select class="SampleCatalog" style="width:160px">
                    <option value="100">固定采样</option>
                    <option value="200">100%采样</option>
                    <option value="300">使用自定义抽样表</option>
                    <option value="400">按百分比采样</option>
                </select>
            </p>
            <p>
                <label>
                    自定义抽样：
                </label>
                <input id="inputOrg1" name="org1.orgNum" value="" type="hidden">
                <input class="required textInput" name="org1.orgName" type="text" postfield="keyword" suggestfields="orgNum,orgName," suggesturl="Quality/SampleProcess/Select" lookupgroup="org1" autocomplete="off">
                <a class="btnLook" rel="Select" href="Quality/SampleProcess/Select" lookupgroup="org1">选择自定义抽样</a>
            </p>
            <p>
                <label>
                    检验水平：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p>
                <label>
                    严格水平：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.SampPCode, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.SampPCode)
            </p>
            <p>
                <label>
                    AQL：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p>
                <label>
                    抽检数：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p>
                <label>
                    百分比(%)：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            @Html.Partial("Operation", Model)
        </div>

        @Html.Partial("FormButtonBar")
    </form>
</div>
